﻿@model MyArticle
@{
    ViewData["Title"] = "LoadArticle";
}

@if (string.IsNullOrEmpty(Model.title) && string.IsNullOrEmpty(Model.content))
{
    <h1 class="text-center">暂无文章</h1>
    return;
}
<h2>@Model.title</h2>
<div id="cons"></div>
@section Scripts
{
    <script src="~/js/htmlhelper.js"></script>
    <script type="text/javascript">
        window.onload = function() {
            var mythml = HtmlUtil.escape2Html('@Html.Raw(Model.content)');
            $("#cons").html(mythml);
        };
    </script>
}


